<span id="galerie"><{$galerie_text}></span>
<br /><br />
<{if $AUTHENTICATED}>
	<div style="float:left;width:20%;">
		<a class="link" href="javascript:showUpdateWindow('galerie');"><img src="<{$HOME_URL}>images/edit.gif" style="border:0px;" alt="Bearbeiten" width="33" height="11" /></a>
	</div>
	<div style="width:60%;float:left;text-align:center;">
		<a class="link" href="#" onclick="new_album(escape('<{$redirect_url}>'));">[Neues Album anlegen]</a>
	</div>
	<div style="width:20%;float:left;"></div>
	<br style="clear:left;" />
<{/if}>
<br />
<div style="width:550px;overflow:auto;">
	<{if !$albums|@count}>
		<div align="center" style="float:left;padding:0px 0px 30px 0px;margin:2px;width:98%;">
			Es sind noch keine Alben vorhanden.
		</div>
	<{else}>
		<{foreach from=$albums item=folder name=pictureFolder}>
			<div style="<{if $smarty.foreach.pictureFolder.iteration % 3 == 1}>clear:left;<{/if}>float:left;text-align:center;padding:0px 0px 20px 0px;margin:2px;width:179px;">
				<div class="div_gallery_album_link">
					<a class="gallery_album_link" id="albumtext_<{$smarty.foreach.pictureFolder.iteration}>" href="<{$HOME_URL}>index.php?site=galerie&action=showalbum&album=<{$folder.folder_name}>">
						<{if $folder.random_picture == "picture_replace" || $folder.random_picture == ""}>
							<img src="/images/galerie/<{$folder.random_picture}>.jpg" class="gallery_picture" width="100" height="75" alt="Vorschaubild" />
						<{else}>
							<img src="/galerie/<{$folder.folder_name}>/thumbs/<{$folder.random_picture}>" class="gallery_picture" width="100" height="75" alt="Vorschaubild" />
						<{/if}>
						<div style="padding-top:5px;">
							<{$folder.album_name}>
						</div>
					</a>
					<{if $AUTHENTICATED }>
						<br />
						<a class="link small" href="<{$HOME_URL}>index.php?site=galerie&action=showalbum&album=<{$folder.folder_name}>">[Album verwalten]</a><br />
						<a class="link small" href="javascript:delete_album('<{$folder.folder_name}>','<{$redirect_url}>');">[Album l&ouml;schen]</a>
					<{/if}>
				</div>
			</div>
		<{/foreach}>
	<{/if}>
</div>